/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package polymorphism;

/**
 *
 * @author Iskandar Sarkawi
 */
public class Example2 {

    public static void main(String[] args) {
        Spider b = new Spider();
        Cow c = new Cow();

        Printer p = new Printer();
        p.show(b);
        p.show(c);

    }

}
